package com.todo.biz.application.handler.review.content;

import com.todo.biz.application.entity.context.ContentReviewContext;
import com.todo.biz.application.entity.context.ContentReviewResult;
import com.todo.biz.application.entity.enums.ContentReviewEnum;
import com.todo.biz.common.enums.ReviewLevelEnum;
import org.springframework.stereotype.Component;

/**
 * @author azhebuxing
 * @date 2024/6/12 14:29
 * @description
 */
@Component
public class TripartiteReviewHandle extends AbstractContentReview {


    @Override
    protected Boolean match(ContentReviewContext context) {
        return true;
    }

    @Override
    protected ContentReviewResult doHandle(ContentReviewContext context) {
        ContentReviewResult result = new ContentReviewResult();
        result.setReviewResult(true);
        result.setReviewLevelEnum(ReviewLevelEnum.A);
        return result;
    }

    @Override
    protected ContentReviewEnum getContentReviewEnum() {
        return ContentReviewEnum.TRIPARTITE_REVIEW;
    }
}
